package team.seekers.oj.group.entity.dao;


import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import team.seekers.oj.common.entity.BaseDO;

import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(GroupExtensionDOField.TABLE_NAME)
public class GroupExtensionDO extends BaseDO {

    @TableId(value = GroupExtensionDOField.ID, type = IdType.AUTO)
    private Long id;

    @TableField(value = GroupExtensionDOField.GMT_CREATE, fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(value = GroupExtensionDOField.GMT_MODIFIED, fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @TableField(GroupExtensionDOField.VERSION)
    @Version
    private Integer version;

    @TableField(GroupExtensionDOField.DELETED)
    @TableLogic(value = "0", delval = "1")
    private Integer deleted;

    @TableField(GroupExtensionDOField.USER_GROUP_ID)
    private Long userGroupId;

    @TableField(GroupExtensionDOField.KEY)
    private String extensionKey;

    @TableField(GroupExtensionDOField.VALUE)
    private String extensionValue;
}